home *** CD-ROM | disk | FTP | other *** search
/ Inside Mac Games Volume 4 #9 / IMG 40 Sep 1996.iso / More Goodies / More for Your Game / Escape Velocity / EV Utilities / EVBible / EVBible.rsrc / TEXT_131.txt < prev    next >
Text File  |  1996-08-05  |  1KB  |  22 lines

  1. ‚Ä¢ The sp√Øn resource (stored in EV Graphics)
  2.     Spin resources contain sprite info. Whenever EV needs to load a set of sprites for a particular object, it looks at that objects's spin resource, which in turn tells the game how to load the object's sprites. EV sprites are stored as paired sprite and mask PICT resources. The sprites in each PICT are arranged in a grid, which can be of any size. The spin resource tells EV what shape and size the sprites' grid is. Spin resources have the following fields:
  3.  
  4. SpritesID    ID number of the sprites' PICT resource
  5. MasksID    ID number of the masks' PICT resource
  6. xSize    Horizontal size of each sprite (should be a multiple of 8!)
  7. ySize    Vertical size of each sprite
  8. xTiles    Horizontal grid dimension 
  9. yTiles    Vertical grid dimension 
  10.  
  11. Spin resources have certain reserved ID numbers, which correspond to different types of objects:
  12.  
  13. 128-191    Ships
  14. 200-263    Weapons
  15. 300-363    Stellar objects
  16. 400-402    Explosions
  17. 500    Boxes
  18.  
  19. It is important to note that the ID numbers of the PICT resources are non-critical, as EV looks at the spin resources to find the sprites, and not at the actual PICT ID numbers themselves.
  20.  
  21. Note: The total number of sprites in the graphics file (used by EV to update the progress bar during startup time) is stored in 'sp√Øt' resource 128 in the EV Graphics file.
  22.